/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package model.interfaces;
import java.util.List;
import javax.persistence.NoResultException;
import javax.persistence.PersistenceException;
import model.excecoes.ErroDAOException;
import model.excecoes.ErroNegocioException;
import model.vendavista.VendaVista;
/**
 *
 * @author Marcos
 */
public interface INegocioVendaVista {
    
    public void registrarVendaVista(VendaVista venda)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
    
    public void alterarVendaVista(VendaVista venda)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
    
    public void excluirVendaVista(VendaVista venda)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
    
    public List<VendaVista> listarVenda(String consulta, String campo)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
    
    public int identificarProduto(String descricao, String marca)throws ErroDAOException, PersistenceException, NoResultException, ErroNegocioException;
    
    public int identificarPerfil(String nome, String login)throws ErroDAOException, PersistenceException, NoResultException;
}
